package com.yxq.mdt.app.modules.webview.prestener;


import com.yxq.mdt.app.base.BasePresenter;
import com.yxq.mdt.app.modules.main.bean.AppVersion;
import com.yxq.mdt.app.modules.webview.model.H5Model;
import com.yxq.mdt.app.net.ApiModel;

public class H5Presenter extends BasePresenter<IH5Contract.View, H5Model> implements IH5Contract.Presenter {

    public H5Presenter(IH5Contract.View view, H5Model model) {
        super(view, model);
    }

    @Override
    public void information(String url) {

        mBaseModel.information(url, new ApiModel.CommonCallback<AppVersion>() {
            @Override
            public void onSuccess(AppVersion appVersion) {
                mRootView.onLoadSuccess(appVersion);
            }

            @Override
            public void onError(String errMsg) {
                mRootView.onLoadFailed(errMsg);
            }
        });
    }

}
